package io.lckgroup.modules.lck.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.lckgroup.common.utils.PageUtils;
import io.lckgroup.common.utils.Query;
import io.lckgroup.modules.lck.dao.ShopFoodSpecDao;
import io.lckgroup.modules.lck.entity.ShopFoodSpecEntity;
import io.lckgroup.modules.lck.service.ShopFoodSpecService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("shopFoodSpecService")
public class ShopFoodSpecServiceImpl extends ServiceImpl<ShopFoodSpecDao, ShopFoodSpecEntity> implements ShopFoodSpecService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ShopFoodSpecEntity> page = this.page(
                new Query<ShopFoodSpecEntity>().getPage(params),
                new QueryWrapper<ShopFoodSpecEntity>()
        );

        return new PageUtils(page);
    }


}